|
Neurosis Engine
|
#include "custom.h"#include "stdafx.h"#include <afxwin.h>#include <gl\gl.h>#include <gl\glu.h>#include <assert.h>#include <atlstr.h>#include <list>#include <math.h>#include <mmsystem.h>#include <process.h>#include <regstr.h>#include <stdio.h>#include <time.h>#include "audio.h"#include "base64.h"#include "camera.h"#include "io_file.h"#include "io_pak.h"#include "network.h"#include "window.h"#include "io_misc.h"#include "model.h"#include "physics.h"Go to the source code of this file.
Defines | |
| #define | NEUROSIS_VERSION 1.42f |
| #define | PI 3.141592653589793238462643383279f |
| #define | RADIAN_DEGREES 57.295779513082320876798154814114f |
Functions | |
| void | Angle_Adjust (float *current, float destination, float amount) |
| Moves current current angle towards destination depending on circle position. | |
| int | Angle_Closer (float angle1, float angle2, float angleCompare) |
| Returns 1 if angle1 is bigger, 2 if angle2 is bigger, and 0 if the same. | |
| float | Angle_Difference (float angle1, float angle2) |
| Returns smallest angle difference between angles. | |
| bool | Angle_Inside (float angleBegin, float angleEnd, float angleCompare) |
| Returns whether angleCompare is between angles. | |
| float | Calculate_Distance (float3 *current, float3 *destination) |
| Returns the distance between the 2 points in 3D space. | |
| float | Calculate_Distance_2D (float3 *current, float3 *destination) |
| Returns the distance between the 2 points in 2D space. | |
| int | Calculate_Random (int upperLimit) |
| Returns random number [0..upperLimit]. | |
| float | Calculate_Rotation_x (float3 *base, float3 *point) |
| Returns the rotation based on the x axis (Pitch) [270.0f..90.0f]. | |
| float | Calculate_Rotation_z (float3 *base, float3 *point) |
| Returns the rotation based on the z axis (Yaw) [0.0f..360.0f]. | |
| template<class T > | |
| void | Clamp (T *value, T min, T max, bool rollOver) |
| Clamps value [min..max]. | |
| float3 | Cross_Product (float3 *value1, float3 *value2) |
| Calculates the cross product. | |
| float | Dot_Product (float3 *value1, float3 *value2) |
| Calculates the dot product. | |
| template<class T > | |
| bool | Goal (T *current, T goal, T amount) |
| Changes current by amount to try and reach goal (returns true if current was changed) | |
| CString | Retrieve_Neurosis_Version () |
| Returns Neurosis version. | |
| CString | Retrieve_Windows_Version () |
| Returns Windows version (95, 98, Me, NT, 2000, XP, Server_2003, Vista, Windows_7) | |
| void | Rotate_x (float3 *base, float3 *point, float amount) |
| Rotates point around base on the x axis (Pitch) | |
| void | Rotate_y (float3 *base, float3 *point, float amount) |
| Rotates point around base on the y axis (Roll) | |
| void | Rotate_z (float3 *base, float3 *point, float amount) |
| Rotates point around base on the z axis (Yaw) | |
| void | Scale_Length (float3 *base, float3 *point, float amount) |
| Scales point in reference to base point. | |
| #define NEUROSIS_VERSION 1.42f |
| #define PI 3.141592653589793238462643383279f |
| #define RADIAN_DEGREES 57.295779513082320876798154814114f |
| void Angle_Adjust | ( | float * | current, |
| float | destination, | ||
| float | amount | ||
| ) |
Moves current current angle towards destination depending on circle position.
| int Angle_Closer | ( | float | angle1, |
| float | angle2, | ||
| float | angleCompare | ||
| ) |
Returns 1 if angle1 is bigger, 2 if angle2 is bigger, and 0 if the same.
| float Angle_Difference | ( | float | angle1, |
| float | angle2 | ||
| ) |
Returns smallest angle difference between angles.
| bool Angle_Inside | ( | float | angleBegin, |
| float | angleEnd, | ||
| float | angleCompare | ||
| ) |
Returns whether angleCompare is between angles.
| float Calculate_Distance | ( | float3 * | current, |
| float3 * | destination | ||
| ) |
Returns the distance between the 2 points in 3D space.
| float Calculate_Distance_2D | ( | float3 * | current, |
| float3 * | destination | ||
| ) |
Returns the distance between the 2 points in 2D space.
| int Calculate_Random | ( | int | upperLimit | ) |
Returns random number [0..upperLimit].
| float Calculate_Rotation_x | ( | float3 * | base, |
| float3 * | point | ||
| ) |
Returns the rotation based on the x axis (Pitch) [270.0f..90.0f].
| float Calculate_Rotation_z | ( | float3 * | base, |
| float3 * | point | ||
| ) |
Returns the rotation based on the z axis (Yaw) [0.0f..360.0f].
| void Clamp | ( | T * | value, |
| T | min, | ||
| T | max, | ||
| bool | rollOver | ||
| ) |
Clamps value [min..max].
| float3 Cross_Product | ( | float3 * | value1, |
| float3 * | value2 | ||
| ) |
Calculates the cross product.
| float Dot_Product | ( | float3 * | value1, |
| float3 * | value2 | ||
| ) |
Calculates the dot product.
| bool Goal | ( | T * | current, |
| T | goal, | ||
| T | amount | ||
| ) |
Changes current by amount to try and reach goal (returns true if current was changed)
| CString Retrieve_Neurosis_Version | ( | ) |
Returns Neurosis version.
| CString Retrieve_Windows_Version | ( | ) |
Returns Windows version (95, 98, Me, NT, 2000, XP, Server_2003, Vista, Windows_7)
Rotates point around base on the x axis (Pitch)
Rotates point around base on the y axis (Roll)
Rotates point around base on the z axis (Yaw)
| void Scale_Length | ( | float3 * | base, |
| float3 * | point, | ||
| float | amount | ||
| ) |
Scales point in reference to base point.
1.7.6.1